#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

void rotation(char* arr, int k) {
	char arr2[100];
	int len = strlen(arr);
	for (int i = 0; i < len; i++) {
		arr2[i] = arr[(i + k) % len];
	}
	arr2[len] = '\0';
	printf("%s", arr2);
}
int main2() {
	char arr[] = "ABCD";
	char* str = arr;
	rotation(str, 2);



	return 0;
}